package com.lvtn.adsonandroid;

import android.annotation.SuppressLint;
import android.util.Log;

public class Item {
	//private String id;
	private String title;
	private String user_email;
	private String user_name;
	private String price;
	private String detail;
	private String news_id;
	private String comment;
	private String status;
	private String visible;
	//private String desc;
	private String created_at;
	private String link_image;
	private static String URL = "http://10.0.2.2/android/news_upload/";
	

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}
	public String getDetail() {
		return detail;
	}
	
	public void setDetail(String detail) {
		this.detail = detail;
	}
	
	public void setId(String id) {
		this.news_id = id;
	}
	public String getId() {
		return news_id;
	}
	
	public String getUser() {
		return user_name;
	}

	public void setUser(String user) {
		this.user_name = user;
	}
	public String getEmail() {
		return user_email;
	}

	public void setEmail(String email) {
		this.user_email = email;
	}

	public String getPubdate() {
		return created_at;
	}

	public void setPubdate(String pubdate) {
		this.created_at = pubdate;
	}
    
	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}
	
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	public String getVisible() {
		return visible;
	}

	public void setVisible(String visible) {
		this.visible = visible;
	}
	public String getLink() {
		return link_image;
	}

	@SuppressLint("NewApi")
	public void setLink(String link) {
		if (!link.isEmpty()){
		 this.link_image = URL+link;
		 Log.d("linkimage",this.link_image);
		}
		else this.link_image = null;
	}

}

